﻿<UserControl x:Class="IMap.Radar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"             
             d:DesignHeight="300" d:DesignWidth="150">
    <UserControl.Resources>
        <SolidColorBrush x:Key="FluoroGreen" Color="#42ff00" />
        <RadialGradientBrush x:Key="SweepingLineBrush" GradientOrigin="0,1" RadiusX="1"	RadiusY="1">
            <GradientStop Offset="0" Color="{Binding Color, Source={StaticResource FluoroGreen}}" />
            <GradientStop Offset="1" Color="Transparent" />
        </RadialGradientBrush>
    </UserControl.Resources>
    <Path x:Name="SweepLine"
					  Fill="{StaticResource SweepingLineBrush}"
					  StrokeThickness="0"
					  Stretch="Uniform"
					  HorizontalAlignment="Left"
					  Grid.Row="0"
					  Grid.Column="1"
					  RenderTransformOrigin="0,1"
					  Data="M 0,0 L 0,1 L 0.382683432,0.0761204675 S 0.25,0 0,0 Z">
            <Path.RenderTransform>
                <RotateTransform />
            </Path.RenderTransform>
        </Path>
</UserControl>
